﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_model_att")]
    [Serializable]
    public class Model_Att : ObjectBase<Model_Att>
    {
        [NotNull(""), Default(0), Column(Length = 5)]
        public Int32 pid { get; set; }

        [NotNull(""), Default(0), Column(Length = 5)]
        public Int64 mid { get; set; }

        [NotNull(""), Column(Length = 100), Default("")]
        public String typename { get; set; }

        [Column(Length = 200), Default("")]
        public String typeremark { get; set; }

        [NotNull(""), Column(Length = 100), Default("")]
        public String attrname { get; set; }

        [NotNull(""), Column(Length = 15), Default("string")]
        public String inputtype { get; set; }

        [LongText]
        public String attrvalue { get; set; }

        [NotNull(""), Default(20), Column(Length = 3)]
        public Int32 attrsize { get; set; }

        [NotNull(""), Default(5), Column(Length = 3)]
        public Int32 attrrow { get; set; }

        [NotNull(""), Default(50), Column(Length = 3)]
        public Int32 attrlenther { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 isvalidate { get; set; }

        [Column(Length = 150), Default("")]
        public String validatetext { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 issearch { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 lockin { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 islockin { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 issys { get; set; }

    }
}
